Skip to content

Instantly share code, notes, and snippets.

@dmzoneill
dmzoneill / Complete Guide: Multi-Instance Ollama Setup with NPU, Intel GPU, and NVIDIA GPU.md
Last active October 4, 2026 07:47
Complete Guide: Multi-Instance Ollama Setup with NPU, Intel GPU, and NVIDIA GPU

Complete Guide: Multi-Instance Ollama Setup with NPU, Intel GPU, NVIDIA GPU, and CPU

System: Fedora 43 Linux Desktop Hardware: Intel Core Ultra 7 268V (Meteor Lake) with NPU, Intel Arc iGPU, NVIDIA RTX 4060 Laptop GPU Setup Date: 2026-01-10 Author: Claude Code Version: 2.0 - Comprehensive Edition Purpose: Run 4 independent Ollama instances simultaneously on different hardware accelerators for optimal power/performance/cost flexibility


@usr2284a
usr2284a / update_qbit_port_protonvpn.ps1
Last active October 4, 2026 07:42 — forked from idwpan/update_qbit_port_protonvpn.ps1
PowerShell script to auto update the qBittorrent listening port when ProtonVPN is connected
########################################################################################################################
# Script to Synchronize qBittorrent Listening Port with ProtonVPN assigned port on Windows.
#
# Description:
# This PowerShell script automates the synchronization of qBittorrent's listening port with the
# port number assigned by ProtonVPN's port forwarding feature.
#
## Original author: idwpan
## This fork: usr2284a - Rev: 01/09/2026
## Additions/Modifications:
@hemiipatu
hemiipatu / qbztoken.user.js
Last active October 4, 2026 07:39 — forked from uhwot/qbztoken.user.js
allows logging in via auth tokens on play.qobuz.com
// ==UserScript==
// @name Qobuz auth token & app-id login
// @namespace io.github.uhwot.qbztoken
// @match https://play.qobuz.com/*
// @grant none
// @version 2.2
// @author uh wot / hemiipatu
// @description Intercepts native login button with custom credentials, complete UI matching and alignment.
// @homepageURL https://gist.github.com/hemiipatu/34a0e3cd35c7fd25260fd84b6991f53b
// @downloadURL https://gist.github.com/hemiipatu/34a0e3cd35c7fd25260fd84b6991f53b/raw/master/qbztoken.user.js

Proxmox VE tips

Just a somewhat chaotic list of personal Proxmox VE related tips/notes or interesting (to me) things I'm working on or experiment with.
Some of the things you see here are niche or purely experimental. I try to label them as such, but as always with random code snippets, make sure to review anything before running it in your own environment. Perhaps test in a virtual PVE first.

Please note that unless you see a shebang (#!/...) these code blocks are usually meant to be copy & pasted directly into the shell. Some of the steps will not work if you run part of them in a script and copy paste other ones as they rely on variables set before.
The { and } surrounding some scripts are meant to avoid cluttering your shell history with individual commands, etc. You can ignore them if you manually copy paste the individual commands.

Table of contents

@rsms
rsms / apk-size-list.sh
Created September 1, 2022 17:50
apk: list installed packages sorted by file size (e.g. alpine linux)
#!/bin/ash
# list installed packages sorted by file size
apk info -e -s \* >/tmp/apksize
awk 'NR % 3 == 1' /tmp/apksize | cut -d ' ' -f 1 > /tmp/apkname
awk 'NR % 3 == 2' /tmp/apksize > /tmp/apksize2
while read -r n unit; do
B=$n
case "$unit" in

Manage Multiple Claude Code Accounts

Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.

Steps

  1. Create Separate Config Directories
    mkdir ~/.claude-account1
    mkdir ~/.claude-account2

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@k16shikano
k16shikano / SKILL.md
Last active October 4, 2026 07:28
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、翻訳調の比喩と擬人化の禁止(「運ぶ」「効く」「開かれた問い」など)、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。
license Unlicense(https://gist.github.com/k16shikano/67625f2a7d96e3bbdfae8d571a936063)

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

@bmsimons
bmsimons / ALLWINDOWSONTECHBENCH.md
Last active October 4, 2026 07:21
Download all Windows ISOs directly from Microsoft with a trick

Just run the following JavaScript bookmarklet on https://www.microsoft.com/en-us/software-download/windows10 to reveal all Windows versions.

$("select#product-edition").html("<option value selected value='selected'>Select edition</option><option value='2'>Windows 7 Home Basic SP1 </option><option value='4'>Windows 7 Professional SP1 </option><option value='6'>Windows 7 Home Premium SP1 </option><option value='8'>Windows 7 Ultimate SP1 </option><option value='10'>Windows 7 Home Premium N SP1 </option><option value='12'>Windows 7 Professional N SP1 </option><option value='14'>Windows 7 Ultimate N SP1 </option><option value='16'>Windows 7 Professional K SP1 </option><option value='18'>Windows 7 Professional KN SP1 </option><option value='20'>Windows 7 Home Premium K SP1 </option><option value='22'>Windows 7 Home Premium KN SP1 </option><option value='24'>Windows 7 Ultimate KN SP1 </option><option value='26'>Windows 7 Ultimate K SP1 </option><option value='28'>Windows 7 Starter SP1 </option><option value